package com.ruoyi.system.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品列表对象 shangpin
 * 
 * @author ruoyi
 * @date 2024-08-10
 */
@Data
public class Shangpin extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long spId;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String spTupian;

    /** 价格 */
    @Excel(name = "价格")
    private Double spJiage;

    /** 打包费 */
    @Excel(name = "打包费")
    private Long spDabaoo;

    /** 库存 */
    @Excel(name = "库存")
    private Long spKucun;

    /** 月售 */
    @Excel(name = "月售")
    private Long spYueshou;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long spDpid;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date spAddtime;

    /** 活动开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date spKaishitime;

    /** 活动结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date spJieshutime;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Long spZhuangtai;

    /** 操作 */
    @Excel(name = "操作")
    private String spCaozuo;

    /** 商品编号 */
    private String spBianhao;

    /** 售卖的状态 */
    private Long spIsshoumai;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String spName;

    /** 商品分类 */
    private Long spFlId;

    /** 是否是套餐(0是，1不是) */
    private Long spIstaocan;

    /** 优惠价格 */
    private Long spPianyi;

    /** 商品分类信息 */
    private List<Fenlei> fenleiList;
    //关联店铺信息表
    private Dianpu dianpu;
    //关联的审核状态表
    private Spshenhe spshenhe;


    public void setSpId(Long spId) 
    {
        this.spId = spId;
    }

    public Long getSpId() 
    {
        return spId;
    }
    public void setSpTupian(String spTupian) 
    {
        this.spTupian = spTupian;
    }

    public String getSpTupian() 
    {
        return spTupian;
    }
    public void setSpJiage(Double spJiage)
    {
        this.spJiage = spJiage;
    }

    public Double getSpJiage()
    {
        return spJiage;
    }
    public void setSpDabaoo(Long spDabaoo) 
    {
        this.spDabaoo = spDabaoo;
    }

    public Long getSpDabaoo() 
    {
        return spDabaoo;
    }
    public void setSpKucun(Long spKucun) 
    {
        this.spKucun = spKucun;
    }

    public Long getSpKucun() 
    {
        return spKucun;
    }
    public void setSpYueshou(Long spYueshou) 
    {
        this.spYueshou = spYueshou;
    }

    public Long getSpYueshou() 
    {
        return spYueshou;
    }
    public void setSpDpid(Long spDpid) 
    {
        this.spDpid = spDpid;
    }

    public Long getSpDpid() 
    {
        return spDpid;
    }
    public void setSpAddtime(Date spAddtime) 
    {
        this.spAddtime = spAddtime;
    }

    public Date getSpAddtime() 
    {
        return spAddtime;
    }
    public void setSpKaishitime(Date spKaishitime) 
    {
        this.spKaishitime = spKaishitime;
    }

    public Date getSpKaishitime() 
    {
        return spKaishitime;
    }
    public void setSpJieshutime(Date spJieshutime) 
    {
        this.spJieshutime = spJieshutime;
    }

    public Date getSpJieshutime() 
    {
        return spJieshutime;
    }
    public void setSpZhuangtai(Long spZhuangtai) 
    {
        this.spZhuangtai = spZhuangtai;
    }

    public Long getSpZhuangtai() 
    {
        return spZhuangtai;
    }
    public void setSpCaozuo(String spCaozuo) 
    {
        this.spCaozuo = spCaozuo;
    }

    public String getSpCaozuo() 
    {
        return spCaozuo;
    }
    public void setSpBianhao(String spBianhao) 
    {
        this.spBianhao = spBianhao;
    }

    public String getSpBianhao() 
    {
        return spBianhao;
    }
    public void setSpIsshoumai(Long spIsshoumai) 
    {
        this.spIsshoumai = spIsshoumai;
    }

    public Long getSpIsshoumai() 
    {
        return spIsshoumai;
    }
    public void setSpName(String spName) 
    {
        this.spName = spName;
    }

    public String getSpName() 
    {
        return spName;
    }
    public void setSpFlId(Long spFlId) 
    {
        this.spFlId = spFlId;
    }

    public Long getSpFlId() 
    {
        return spFlId;
    }
    public void setSpIstaocan(Long spIstaocan) 
    {
        this.spIstaocan = spIstaocan;
    }

    public Long getSpIstaocan() 
    {
        return spIstaocan;
    }
    public void setSpPianyi(Long spPianyi) 
    {
        this.spPianyi = spPianyi;
    }

    public Long getSpPianyi() 
    {
        return spPianyi;
    }

    public List<Fenlei> getFenleiList()
    {
        return fenleiList;
    }

    public void setFenleiList(List<Fenlei> fenleiList)
    {
        this.fenleiList = fenleiList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("spId", getSpId())
            .append("spTupian", getSpTupian())
            .append("spJiage", getSpJiage())
            .append("spDabaoo", getSpDabaoo())
            .append("spKucun", getSpKucun())
            .append("spYueshou", getSpYueshou())
            .append("spDpid", getSpDpid())
            .append("spAddtime", getSpAddtime())
            .append("spKaishitime", getSpKaishitime())
            .append("spJieshutime", getSpJieshutime())
            .append("spZhuangtai", getSpZhuangtai())
            .append("spCaozuo", getSpCaozuo())
            .append("spBianhao", getSpBianhao())
            .append("spIsshoumai", getSpIsshoumai())
            .append("spName", getSpName())
            .append("spFlId", getSpFlId())
            .append("spIstaocan", getSpIstaocan())
            .append("spPianyi", getSpPianyi())
            .append("fenleiList", getFenleiList())
            .toString();
    }
}
